package cn.fastoo.common.dao.product;
import cn.fastoo.common.entity.product.ProductAttr;
import cn.fastoo.common.entity.product.ProductAttrValue;
import cn.fastoo.common.sampleframe.dao.FastDao;
import cn.fastoo.common.sampleframe.dao.impl.FastDaoImpl;
import cn.fastoo.common.sampleframe.search.Search;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import javax.sql.DataSource;
import java.util.List;


@Component
@Transactional
public class ProductAttrValueDao extends FastDaoImpl<ProductAttrValue> implements FastDao<ProductAttrValue> {


    public Logger logger = LoggerFactory.getLogger(ProductAttrValueDao.class);

    @Autowired
    @Qualifier("mainDS")
    private void setJt(DataSource ds){
        this.jt = new JdbcTemplate(ds);
    }




}
